using System;
using System.Threading;
using System.Threading.Tasks;
public class ASyncSmaple_02 {
    public async void AddAsync () {
        Console.WriteLine ("---------ASyncSmaple_02 ： 异步方法开始------------");

        var result = await Task<float>.Run<float> (() => {
            var temp = 8657.0f;
            for (int i = 0; i < 98754; i++) {
                temp += (float) i;
            }
            return temp;
        });
        Console.WriteLine (result);
        Console.WriteLine ("---------ASyncSmaple_02 ： 异步方法结束--------------");
    }
}